package com.yike.user.service;

import com.yike.user.entity.CommissionSettle;
import com.yike.user.param.CommissionSettlePageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 代理商分佣结算表 服务类
 *
 * @author Sakura
 * @since 2024-09-09
 */
public interface CommissionSettleService extends BaseService<CommissionSettle> {

    /**
     * 保存
     *
     * @param commissionSettle
     * @return
     * @throws Exception
     */
    boolean saveCommissionSettle(CommissionSettle commissionSettle) throws Exception;

    /**
     * 修改
     *
     * @param commissionSettle
     * @return
     * @throws Exception
     */
    boolean updateCommissionSettle(CommissionSettle commissionSettle) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteCommissionSettle(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param commissionSettlePageParam
     * @return
     * @throws Exception
     */
    Paging<CommissionSettle> getCommissionSettlePageList(CommissionSettlePageParam commissionSettlePageParam) throws Exception;

}
